package com.example.timertask_demo;

import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;


public class MainActivity extends FragmentActivity {
    int i=10;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        FragmentTransaction transaction = getFragmentManager().beginTransaction();
        WaitingFragment waitingFragment = new WaitingFragment();
        transaction.add(R.id.contaner,waitingFragment,"00");
        transaction.commit();

    }
}
